package com.movitech.mobile.cz.base.purchase.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.movitech.mobile.cz.base.modules.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * <p>
 * 采购计划变动
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-11-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("p_plan_changes")
@ApiModel
public class PPlanChanges extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 计划id
     */
    @ApiModelProperty(value = "计划id")
    @TableField("plan_id")
    private String planId;
    /**
     * 变动率类型（1：专项采购方案时间，2：定标时间）
     */
    @ApiModelProperty(value = "变动率类型（1：专项采购方案时间，2：定标时间）")
    @TableField("change_type")
    private Integer changeType;
    /**
     * 原始时间
     */
    @ApiModelProperty(value = "原始时间")
    @TableField("orgin_time")
    private Date orginTime;
    /**
     * 变动时间
     */
    @ApiModelProperty(value = "变动时间")
    @TableField("changed_time")
    private Date changedTime;
    /**
     * 相差天数
     */
    @ApiModelProperty(value = "相差天数")
    @TableField("changed_diff_days")
    private Double changedDiffDays;


}
